<extend name="Index/index" />
<block name="main">
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span
                    class="crumb-step">&gt;</span><span class="crumb-name">会员管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="{:U('User/list')}" method="GET">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search-sort" id="">
                                    <option value="uname">用户名</option>
                                    <option value="uemail" <?php if($_GET['search-sort'] == 'uemail'){echo 'selected';} ?> >邮箱</option>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="模糊查询" name="keywords" value="<?=$_GET['keywords']?>" id="" type="text">
                            </td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="{:U('Member/create')}"><i class="icon-font"></i>新增</a>
                        <a id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>
                        <a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>
                            <th>排序</th>
                            <th>ID</th>
                            <th>用户名</th>
                            <th>手机号</th>
                            <th>创建时间</th>
                            <th>修改时间</th>
                            <th>删除时间</th>
                            <th>操作</th>
                        </tr>
                        <?php foreach($data as $k=>$v):?>
                        <tr>
                            <td class="tc"><input name="id[]" value="59" type="checkbox"></td>
                            <td>
                                <input name="ids[]" value="59" type="hidden">
                                <input class="common-input sort-input" name="ord[]" value="0" type="text">
                            </td>
                            <td><?=$v['id']?></td>
                            <td title=""><a target="_blank" href="#" title=""><?=$v['name']?></a>
                            </td>
                            <td><?=$v['phone']?></td>
                            <td><?=$v['create_time']?></td>
                            <td><?=$v['update_time']?></td>
                            <td><?=$v['delete_time']?></td>
                            <td>
                                   <a class="link-del" href="{:U('Member/active')}?uid=<?=$v['uid']?>"><?php if($v['is_active']=='未激活'){echo '激活';}else{echo '关闭';}?></a> 
                                  
                                <a class="link-update" href="{:U('Member/edit')}?uid=<?=$v['id']?>">修改</a>
                                <!-- <a class="link-update" href="/index.php?m=admin&c=user&a=edit&uid=<?=$v['uid']?>">修改</a> -->
                                <a class="link-del" href="{:U('Member/delete')}?uid=<?=$v['id']?>">删除</a>
                            </td>
                        </tr>
                        <?php endforeach;?>
                    </table>
                    <div class="list-page">{$page}</div>
                </div>
            </form>
        </div>
    </div>
    <style type="text/css">
    .yuan{
        border-radius:50%;
    }
    </style>
</block>